#pragma once
#include "Common.hpp"

class CentralCache
{
public:
    static CentralCache* GetInc()
    {
        return &_sInc;
    }
    size_t FectRangObj(void*& start,void*& end,size_t n,size_t bytes_size);
    Span* GetOneSpan(SpanList& list,size_t types_size);
    void ReleaseListToSpans(void* start,size_t size);

private:
    SpanList _spanLists[NFREE_LIST];
private:
    CentralCache(){};
    CentralCache(const CentralCache&)=delete;
    static CentralCache _sInc;
};
